const { env } = require('./env')

const UPLOAD_PATH = env == 'dev' ?'/Users/sam/upload/admin-upload' :'/www/wwwroot/sam/upload/admin-upload'

const UPLOAD_URL = env === 'dev' ?
  'http://www.huijiaoerun.com:8089':
  'http://www.huijiaoe.com:8089'


module.exports = {
    CODE_ERROR:404,
    CODE_SUCCESS:200,
    CODE_TOKEN_EXPIRED:-2,
    debug:true,//是否开启显示查询结果
    PWD_SALT:'user_huijiaoyi',//MD5加密的密钥 
    PRIVATE_KEY:'user_node_huijiaoyi',//token的密钥
    JWT_EXPIRED:60 * 60,//后台token的失效时间 1小时
    USER_JWT_EXPIRED:31536000,//后台token的失效时间 //设置为1年
    UPLOAD_PATH,
    UPLOAD_URL
}